// api.js
import RequestModel from './request'
export const apiUpdateVisit = (params) => {
  return RequestModel.get({
    url: '/update-visit?id=' + params.id + '&status=' + params.status,
    data: params
  })
}
export const apiAddVisit = (params) => {
  return RequestModel.post({
    url: '/insert-visit-and?openId=' + params.openId,
    data: params
  })
}
export const apiGetisit = (params) => {
  return RequestModel.get({
    url: '/query-visit-by-openId?openId=' + params.openId,
    data: params
  })
}
export const apiGetisitAdmin = (params) => {
  return RequestModel.get({
    url: '/query-visit-by-openId'
  })
}
export const apiLogin = (params) => {
  return RequestModel.post({
    url: '/login',
    data: params
  })
}

